package com.life.wd.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
@ApiModel("产品查询请求")
public class ProductQueryRequest {

    @ApiModelProperty("页码，默认1")
    @Min(value = 1, message = "页码不能小于1")
    private Integer page = 1;

    @ApiModelProperty("每页数量，默认10")
    @Min(value = 1, message = "每页数量不能小于1")
    @Max(value = 100, message = "每页数量不能大于100")
    private Integer pageSize = 10;

    @ApiModelProperty("产品分类")
    private String category;

    @ApiModelProperty("供应商ID")
    private Integer supplierId;
}